package com.example.jvm;

import com.example.jvm.mycalss.MyChild;
import com.example.jvm.study.MyClassLoader;

/**
 * @author jl
 * @since 2021/6/6 17:13
 */
public class Main {
    static {
        System.out.println("Main class init");
    }

    public static void main(String[] args) throws Exception {
//        MyClassLoader myClassLoader = new MyClassLoader("myClassLoader1");
//        Class<?> class1 = myClassLoader.loadClass("com.example.jvm.study.MyClass");
//        System.out.println(class1.getClassLoader());

//        MyChild myChild=new MyChild();
        System.out.println(MyChild.childStr);
    }
}
